//
//  YiCheTableViewCell.m
//  10-UI
//
//  Created by Snow on 16/7/27.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "YiCheTableViewCell.h"
#import "UIView+Frame.h"
@implementation YiCheTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _labelOfContent = [[UILabel alloc] init];
        _imageViewOfYiChe = [[UIImageView alloc] init];
        [self.contentView addSubview:_imageViewOfYiChe];
        [self.contentView addSubview:_labelOfContent];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _imageViewOfYiChe.frame = CGRectMake(5, 5, self.contentView.x_width / 4, self.contentView.x_height - 10);
    _imageViewOfYiChe.backgroundColor = [UIColor redColor];
    _labelOfContent.frame = CGRectMake(self.contentView.x_width / 4 + 10, 5, self.contentView.x_width * 3 / 4 - 15, self.contentView.x_height - 10);
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
